from urllib import request as ur

headers_default={
    'User-Agent': 'Mozilla/5.0 (Windows NT 10.0; Win64; x64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/78.0.3904.97 Safari/537.36',
}

# get response from the URL
def geturl(url, data = None, headers = headers_default):
    request = ur.Request(
        url=url,
        data=data,
        headers=headers,
    )
    return ur.urlopen(request).read()
